package com.bruce.codeFactory.designMode.observer;

/**
 * @author luotuan
 * @Description
 * @create 2019-03-04 22:09
 **/
public class ObserverClient {
    public static void main(String[] args) {
        Subject subject = new Subject();
        new BinaryObserver(subject);
        new OctalObserver(subject);
        subject.setState(10);
        System.out.println("======================");
        subject.setState(12);
    }
}
